home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Dec 89 / 0276-UMenuSetup shortcomi-Dec89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.1 KB  |  24 lines  |  [TEXT/GEOL]

  1. Item    9647515                         28-Dec-89        07:58
  2.  
  3. From:   D5284                           BDM Int'l, Ann Confer,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    UMenuSetup shortcoming
  8.  
  9.  
  10.  
  11.     I wanted to report what I view as a shortcoming in the UMenuSetup Unit.
  12. Not all of the defined procedures and functions support menus that are defined
  13. via the Menu Manager calls NewMenu, AppendMenu, and InsertMenu.  In particular,
  14. CmdEnabled and CmdToName both call GetResMenu, rather than GetMHandle, to set
  15. the menu handle.  Therefore, these two procedures always return FALSE and "",
  16. respectively, if the menu is not defined via resources.  Until you discover
  17. this, it can be very confusing when developing an application.  Once I created
  18. copies of these procedures that use GetMHandle instead of GetResMenu (as is
  19. done in Enable) the values returned were correct.  I suggest that all
  20. procedures and functions in UMenuSetup be updated to support both menus created
  21. from resources and menus created by calling the Menu Manager procedures
  22. directly.
  23.  
  24.